//
//  MyTableViewCell.m
//  BSLCar
//
//  Created by dlios on 15/6/3.
//  Copyright (c) 2015年 lyz. All rights reserved.
//

#import "MyTableViewCell.h"

@interface MyTableViewCell ()

@property (nonatomic, retain) UILabel *label;

@end

@implementation MyTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self create];
    }
    return self;
}

- (void)create {
    self.label = [[UILabel alloc] init];
    [self.contentView addSubview:self.label];
}

- (void)layoutSubviews {
    [super layoutSubviews];
    
    self.label.frame = CGRectMake(5, self.bounds.size.height - 1, self.bounds.size.width - 10, 1);
    self.label.backgroundColor = [UIColor grayColor];
    self.label.alpha = .2f;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
